﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using System.Drawing;

namespace GestionEco
{
    public class Case
    {
        private Terrain terrain;
        private Image imageCase;
        private Texture2D textureCase;
        private List<EtreVivant> listEVCase;
        private Vector2 position;

       

        public Case(Image uneImage, String unterrain)
        {
            this.ListEVCase = new List<EtreVivant>();
            this.imageCase = uneImage;
            this.position = new Vector2();

            switch (unterrain)
            {
                case "Mer":
                    terrain = new Terrain(100, 100,"Mer");
                    break;
                case "Plaine":
                    terrain = new Terrain(40, 30, "Plaine");
                    break;
                case "Foret":
                    terrain = new Terrain(50, 80, "Foret");
                    break;
                case "Montagne":
                    terrain = new Terrain(30, 20, "Montagne");
                    break;
                default:
                    terrain = new Terrain(10, 5, "Desert");
                    break;
            }

        }

        #region assesseurs
        public Image ImageCase
        {
            get { return imageCase; }
            set { imageCase = value; }
        }
        public Terrain Terrain
        {
            get { return terrain; }
            set { terrain = value; }
        }

        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }

        public List<EtreVivant> ListEVCase
        {
            get { return listEVCase; }
            set { listEVCase = value; }
        }

        public Texture2D TextureCase
        {
            get { return textureCase; }
            set { textureCase = value; }
        }
        #endregion


    }
}
